package com.bmps.springcloud.insuredmicroservice.model.accept.resquest;

import lombok.Data;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author lyw
 * @date 2019/07/24
 */
@Data
public class ProductModel implements Serializable {

    private int prodInsSeq;

    @NotBlank(message = "prodName字段不能为空!")
    private String prodName;

    @NotBlank(message = "prodCode字段不能为空!")
    private String prodCode;

    private Integer planVersion;

    @NotNull(message = "payYear字段不能为空!")
    private Integer payYear;

    @NotBlank(message = "payYearFlag字段不能为空!")
    private String payYearFlag;

    @NotNull(message = "insureYear字段不能为空!")
    private Integer insureYear;

    @NotBlank(message = "insureYearFlag字段不能为空!")
    private String insureYearFlag;

    private BigDecimal amnt;

    private BigDecimal prem;

    private String optionDutyCode;

    private Integer mult;
    @Min(0)
    private double addPremEM;

    private BigDecimal addPrem;

}
